import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import pkg from './package.json'
export default [
    {
        input: 'src/main.ts',
        output: {
            name: 'TestNo1',
            file: pkg.browser,
            format: 'umd'
        },
        plugins: [
            resolve(),
            commonjs(),
            typescript()
        ]
    },
    {
        input: 'src/main.ts',
        // external: ['ms'],
        plugins: [typescript()],
        output: [
            {
                file: pkg.main, format: 'cjs'
            },
            {
                file: pkg.module, format: 'es'
            }
        ]
    }
]